package com.subject.shuati.application.covert;

import com.subject.shuati.application.dto.SubjectCategoryDto;
import com.subject.shuati.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryDtoConverter {

    SubjectCategoryDtoConverter Instance = Mappers.getMapper(SubjectCategoryDtoConverter.class);

    SubjectCategoryBo covertBoCategory(SubjectCategoryDto subjectCategoryDto);

    SubjectCategoryDto covertBoToDTO(SubjectCategoryBo subjectCategoryBo);

    List<SubjectCategoryDto> convertBoToCategoryDTOList(List<SubjectCategoryBo> subjectCategoryBOList);

}
